<?php
@session_start();
require './config/db.php';
require './config/paging.php';
$db = new db();
$url = $db->getCurrentUrl();
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <link href="css/style.css" type="text/css" rel="stylesheet" />
        <link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="css/default/default.css" type="text/css" />
        <script src="js/jquery.js" type="text/javascript" ></script>
        <script src="js/custom.js" type="text/javascript" ></script>
        <script src="js/ajax.js" type="text/javascript" ></script>
        <script src="js/jquery.nivo.slider.pack.js" type="text/javascript"></script>
        <script type="text/javascript" src="js/jquery.validate.min.js"></script>
        <script type="text/javascript" src="js/messages_vi.js"></script>
    </head>
    <body>
       
        <div id="wrap">
            <div id="header">
                <div class="top-menu">
                    <ul>
                        <li><a href="#">Menu #1</a></li>
                        <li><a href="#">Menu #2</a></li>
                        <li><a href="#">Menu #3</a></li>
                        <li><a href="contact.php">Liên hệ</a></li>
                        <?php
                        if(isset($_SESSION['user'])) {
                        ?>
                        <li class="lr"><?php echo "Xin chào! " . $_SESSION['user'] . "."; ?><a href="admin/logout.php">Thoát</a></li>
                        <?php
                        } else {
                        ?>
                        <li class="lr"><a href="register.php">Đăng ký</a></li>
                        <li class="lr"><a href="login.php">Đăng nhập</a></li>
                        <?php
                        }
                        ?>
                    </ul>
                </div>
                <div class="top-banner">
                    <div id="logo">
                        <a href="index.php"><img src="css/img/logo.png" width="210"></a>
                    </div>
                    <div id="top-cart">
                        <a href="cart.php"><img src="css/img/cart.png" align="middle" style="margin-top: -12px;"></a>
                        <div style="display: inline-block;font-size: 14px;">
                            <span>
                            
                            </span> 
                        </div>
                    </div>
                    <div class="search-box">
                        <form name="searchForm" action="search.php" method="get">
                            <input type="text" id="search-box" name="btnName" value="" placeholder="Nhập từ khóa tìm kiếm..." />
                        </form>
                    </div>
                </div>
                <div class="menu">
                    <ul>
                        <li><a href="index.php">Trang chủ</a></li>
                        <li><a href="category-items.php">Category #1</a></li>
                        <li><a href="#">Menu #3</a></li>
                        <li><a href="#">Menu #4</a></li>
                        <li><a href="#">Menu #5</a></li>
                    </ul>
                </div>
            </div>